package com.navinfo.tripanalysis.common.arithmetic.enums;

import com.google.common.collect.Range;

/**
 * 坡度区间
 */
public enum RangeSlopeEnum {

    Range_F5(Range.lessThan(-5)),
    Range_F4(Range.openClosed(-5,-4)),
    Range_F3(Range.openClosed(-4,-3)),
    Range_F2(Range.openClosed(-3,-2)),
    Range_F1(Range.openClosed(-2,-1)),
    Range_0(Range.openClosed(-1,0)),
    Range_1(Range.openClosed(0,1)),
    Range_2(Range.openClosed(1,2)),
    Range_3(Range.openClosed(2,3)),
    Range_4(Range.openClosed(3,4)),
    Range_5(Range.openClosed(4,5)),
    Range_Over(Range.greaterThan(5));


    private Range<Integer> range;

    RangeSlopeEnum(Range<Integer> range) {
        this.range = range;

    }

    public Range<Integer> getRange() {
        return range;
    }

}
